package com.qf.staff.common.qo;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

/**
 * 商品表
 */
@Data
@TableName(value = "yu_goods")
public class GoodsQo {
    public static final String COL_GOODS_ID = "goods_id";
    public static final String COL_GOODS_NAME = "goods_name";
    public static final String COL_GOODS_BRAND = "goods_brand";
    public static final String COL_CATEGORY_ID = "category_id";
    public static final String COL_GOODS_IMG = "goods_img";
    /**
     * 商品id
     */
    @TableId(value = "goods_id", type = IdType.INPUT)
    private Integer goodsId;
    /**
     * 商品名称
     */
    @TableField(value = "goods_name")
    private String goodsName;
    /**
     * 商品品牌
     */
    @TableField(value = "goods_brand")
    private String goodsBrand;
    /**
     * 商品类型
     */
    @TableField(value = "category_id")
    private Integer categoryId;
    /**
     * 商品图片
     */
    @TableField(value = "goods_img")
    private String goodsImg;
    @TableField(value = "`status`")
    @Version
    private Integer status;
    @Version
    private double price;
}